package com.regosystems.ciocockpit.test;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

;

public class HelloApp {
	public static void main(String[] args) throws Exception {
		ClassPathResource classPathResource = new ClassPathResource(
				"applicationContext.xml");

		BeanFactory factory = new XmlBeanFactory(classPathResource);

		HelloService helloService = (HelloService) factory
				.getBean("helloService");

		helloService.sayHello();
	}
}